#include <iostream>
using namespace std;
template<typename T>
void test(T&a,T&b)
{
	T temp=a;
	a=b;
	b=temp;
}
int main()
{
	int a=10,b=20;
	cout << "a=" << a << endl << "b=" << b << endl;
	test(a,b);
	cout << "a=" << a << endl << "b=" << b << endl;
	swap(a,b);
	cout << "a=" << a << endl << "b=" << b << endl;
	return 0;
}
